package com.finalist.dao.impl;

import javax.persistence.FlushModeType;

import org.springframework.stereotype.Repository;

import com.finalist.dao.ReviewParaDao;
import com.finalist.entity.ReviewPara;

@Repository("reviewParaDaoImple")
public class ReviewParaDaoImple extends BaseDaoImpl<ReviewPara, Long> implements ReviewParaDao{

	@Override
	public void deleteAll() {
		try {
			String deleteSql = "delete from ReviewPara";
			entityManager.createQuery(deleteSql).setFlushMode(FlushModeType.COMMIT).executeUpdate();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
